home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 14
/
Hot Mix 14.iso
/
HTML
/
vendors
/
finesse
/
examples
/
sh
/
hello_name2
< prev
next >
Wrap
Text File
|
1996-06-27
|
726b
|
31 lines
#! /bin/sh
# FINESSEAPPLICATIONKEY sNOFTZxjLwPT^
. ${FINESSEPATH-/usr/local/finesse}/fsshinit
winnam=namewindow
windef="
FsWindow -btype oxa -name $winnam;
FsLabel -label 'Please enter your name:';
FsText -label Name: -var name;
FsSeparator;" # (0)
Fsopen
Fsdisplay -w "$windef" -m "Hello!" # (1)
if [ "$fsbutton" != "o" ] ; then
Fsclose; exit
fi
while [ -z "$name" ] # (2)
do
Fsdisplay -n $winnam -m "Name is missing..." # (3)
if [ "$fsbutton" != "o" ] ; then
Fsclose; exit
fi
done
Fsdisplay -w "FsWindow; FsPushButton -label Goodbye;"\
-m "Hello $name" # (4)
Fsclose